package com.etoak.car.service;

import com.etoak.car.bean.Car;
import com.etoak.car.bean.Order;
import com.etoak.car.mapper.RentalMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RentalService {

    @Autowired
    RentalMapper rentalMapper;

    public int rentalCar(Order order) {
        return rentalMapper.rentalCar(order);
    }

    public Car getCarById(int carid) {
        return rentalMapper.getCarById(carid);
    }

    public int upStatus(int i) {
        return rentalMapper.upStatus(i);
    }
}
